package edu.hitsz.aircraft;

import edu.hitsz.application.ImageManager;
import edu.hitsz.application.Main;

/**
 * @author CsCN
 */
public class MobEnemyFactory implements EnemyFactory{
    @Override
    public AbstractEnemy createEnemy(double rate, double elitePossibility, int shootNum) {
        return new MobEnemy(
                (int) (Math.random() * (Main.WINDOW_WIDTH - ImageManager.MOB_ENEMY_IMAGE.getWidth())),
                (int) (Math.random() * Main.WINDOW_HEIGHT * 0.2),
                (int) (0 * rate),
                (int) (5 * rate),
                (int) (20 * rate)
        );
    }
}
